import http from '@/utils/request';

// 查询优惠券
export const getPage = (params: object) => {
	return http.request({
		method: 'GET',
		url: '/promotion/app/couponuser/page',
		params,
		custom: {
			loading: false,
		},
	});
};
// 领取优惠券
export const addObj = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/promotion/app/couponuser',
		data,
	});
};
